package org.jcut.config;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
@WebListener
public class UserStatisticsListener implements HttpSessionListener {
	public static int count = 0;    

	@Override    

	public void sessionCreated(HttpSessionEvent se) {        

	System.out.println("创建session");        

	count ++;    

	}    

	@Override    

	public void sessionDestroyed(HttpSessionEvent se) {        

	System.out.println("销毁session");        

	count --;    

	}
}
